package spring.chatroom.java_chatroom.server;

import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import spring.chatroom.java_chatroom.pojo.model.MsgInfo;

import java.util.List;

@Service
public interface SaveFiles {

    List<MsgInfo> saveToDB(List<String> list, MsgInfo msgInfo);

    /**
     * 放回的是每个文件对应的储存格式
     * #{video}name
     */
    List<String> saveFiles(List<MultipartFile> file);


}
